<?php

namespace slinks\core\dependencyInjectionExt\compiler;

use slinks\core\DependencyInjection\ContainerBuilder;
use slinks\core\DependencyInjection\Extension\Extension;
use slinks\core\dependencyInjectionExt\StringConstants;
use slinks\core\DependencyInjection\Compiler\PassConfig;

/*
 * This file is part of the Symfony framework.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

/**
 * Sets the classes to compile in the cache for the container.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class AddClassesToCachePass implements ICompilerPass
{
    /**
     * {@inheritDoc}
     */
    public function process(ContainerBuilder $container)
    {/*
        $classes = array();
        foreach ($container->getExtensions() as $extension) {
            if ($extension instanceof Extension) {
                $classes = array_merge($classes, $extension->getClassesToCompile());
            }
        }

        $container->setParameter(StringConstants::compiledClasses(), array_unique($classes));
*/
    
    }
    
    public function getType() {
        return PassConfig::TYPE_BEFORE_OPTIMIZATION;
    }

}
